package cn.edu.ujn.park.service;

import cn.edu.ujn.park.dao.ParkingSpace;
import cn.edu.ujn.util.Page;
import org.springframework.stereotype.Service;

import java.util.List;


public interface IParkingSpace {
    int deleteByPrimaryKey(Integer spaceId);

    int insert(ParkingSpace row);

    int insertSelective(ParkingSpace row);

    ParkingSpace selectByPrimaryKey(Integer spaceId);

    int updateByPrimaryKeySelective(ParkingSpace row);

    int updateByPrimaryKey(ParkingSpace row);

    Page<ParkingSpace> selectAll(ParkingSpace space);

    Integer selectCount();

    Page<ParkingSpace> selectByNumber(String spaceNumber);

    List<ParkingSpace> selectAvailable();
}
